// 游戏配置
export const GAME_CONFIG = {
    GRAVITY: -0.1,
    BASE_SPEED: 0.2,
    JUMP_FORCE: 1.2,
    PLAYER_START_POS: { x: 0, y: 2, z: 10 },
    SCENE_FOG: {
        color: '#001d45',
        near: 10,
        far: 300
    },
    FLOOR_CONFIG: {
        width: 30,
        height: 0.5,
        depth: 500,
        color: 0x0000aa
    },
    OBSTACLE_CONFIG: {
        spacing: 30,
        count: 20,
        BASE_SPEED: 0.5,
        colors: {
            normal: 0xfcba03
        },
        positions: {
            LEFT: -7.5,
            CENTER: 0,
            RIGHT: 7.5
        },
        height: {
            MIN: 5,
            MAX: 10
        }
    }
};

// 道具类型
export const POWERUP_TYPES = {
    SPEED: 'speed',
    SHIELD: 'shield',
    MAGNET: 'magnet',
    SLOW: 'slow'
};

// 道具效果持续时间（毫秒）
export const POWERUP_DURATION = {
    [POWERUP_TYPES.SPEED]: 5000,
    [POWERUP_TYPES.SHIELD]: 3000,
    [POWERUP_TYPES.MAGNET]: 7000,
    [POWERUP_TYPES.SLOW]: 4000
};

// 道具生成配置
export const POWERUP_CONFIG = {
    SPAWN_CHANCE: 0.03,
    MAX_COUNT: 5,
    SPAWN_DISTANCE: 300,
    POSITIONS: {
        LEFT: -7.5,
        CENTER: 0,
        RIGHT: 7.5
    },
    COLORS: {
        [POWERUP_TYPES.SPEED]: 0x00ff00,
        [POWERUP_TYPES.SHIELD]: 0x0000ff,
        [POWERUP_TYPES.MAGNET]: 0xff00ff,
        [POWERUP_TYPES.SLOW]: 0xffff00
    }
};

export const CONFIG = {
    CANVAS: {
        WIDTH: 800,
        HEIGHT: 400
    },
    PLAYER: {
        WIDTH: 40,
        HEIGHT: 40,
        JUMP_FORCE: -12,
        GRAVITY: 0.6
    },
    OBSTACLE: {
        MIN_WIDTH: 30,
        MAX_WIDTH: 50,
        MIN_HEIGHT: 50,
        MAX_HEIGHT: 150,
        BASE_SPEED: 5
    },
    GAME: {
        INITIAL_LEVEL: 1,
        SCORE_PER_OBSTACLE: 10,
        LEVEL_THRESHOLD: 500
    }
}; 